<layout name='layout' />

<div class="admin-main">

	<blockquote class="layui-elem-quote">
		<a href="<{:U('Goods/index')}>" class="layui-btn layui-btn-small">
			<i class="layui-icon">&#xe603;</i> 返回列表
		</a>

		<button class="layui-btn layui-btn-small layui-btn-normal" id="restoreBtn" url="<{:U('Goods/restore')}>">
			<i class="fa fa-reply"></i> 还原
		</button>

		<button class="layui-btn layui-btn-small layui-btn-danger" id="delBtn">
			<i class="fa fa-close"></i> 彻底删除
		</button>

		<div class="search">
			<form class="layui-form" method="post" action="<{:U('Goods/trash')}>">
			<div class="layui-input-inline">
			<input type="text" name="keyword" lay-verify="required" class="layui-input layui-btn-small">
			</div>
			<button type="submit" class="layui-btn" lay-submit=""><i class="layui-icon">&#xe615;</i> 搜索</button>
			</form>
		</div>
	</blockquote>

	<fieldset class="layui-elem-field">
		<legend>回收站</legend>
		<div class="layui-field-box">
			<form id="ajaxForm" method="post" action="<{:U('Goods/truedel')}>">
			<table class="site-table table-hover">
				<thead>
					<tr>
						<th><input type="checkbox" id="selected-all"></th>								
						<th>名称</th>
						<th>分类</th>
						<th>图片</th>
						<th>销售价</th>
						<th>市场价</th>
						<th>库存</th>
						<th>状态</th>
						<th>排序值</th>
						<th>属性</th>
						<th>添加日期</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="list" id="vo">
					<tr>
						<td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>"></td>
						<td><a href="<{:U('Goods/edit' , array('id'=>$vo['id']))}>" alt="<{$vo.picname}>" title="<{$vo.name}>"><{$vo.name}></a></td>
						<td><{$cate[$vo['cid']]}></td>
						<td><img src="<{$vo.picname}>" style="height:40px" class="preview" alt="<{$vo.picname}>" title="<{$vo.name}>"></td>		
						<td><{$vo.price}></td>	 
						<td><{$vo.shichang}></td>	 
						<td><{$vo.kucun}></td>						
						<td><eq name="vo.show" value="1">销售中<else/><font color="red">下架</font></eq></td>	
						<td><{$vo.sort}></td>
						<td>
							<eq name="vo.index" value="1"><font color="red">首页</font></eq>
							<eq name="vo.tejia" value="1"><font color="blue">特价</font></eq>
							<eq name="vo.comm" value="1"><font color="green">推荐</font></eq>
						</td>
						<td><{$vo.createTime|date='Y-m-d H:i:s',###}></td>
						<td>
							<a href="<{:U('Goods/edit' , array('id'=>$vo['id']))}>" class="layui-btn layui-btn-mini">编辑</a>
						</td>
					</tr>	
					</volist>						
				</tbody>
			</table>
			</form>
		</div>
	</fieldset>
	<div class="admin-table-page">
		<div id="page" class="page"><{$page}></div>
	</div>
</div>
		
